package br.com.quiz.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.PrimaryKeyJoinColumn;

@Entity
@PrimaryKeyJoinColumn( name = "ADM_PES_ID" )
@NamedQueries( value = { @NamedQuery( name = "Admin.filtrarPorId", query = "Select a from Admin a where a.admId = :admId" ) } )
public class Admin extends Pessoa{
	/**
	 * 
	 */
	private static final long serialVersionUID = 5794476970159018803L;
	@Basic
	@GeneratedValue( strategy = GenerationType.IDENTITY )
	@Column( name = "ADM_ID" )
	private Integer admId;

	public Integer getAdmId() {
		return admId;
	}

	public void setAdmId( Integer admId ) {
		this.admId = admId;
	}

}
